<?php
namespace App\Service\User;
use App\Model\LikeTag;

/**
 * 标记是否感兴趣记录
 * Class LikeTagMarkService
 * @package App\Service\User
 */
class LikeTagMarkService extends UserBaseService
{
    public function handle()
    {
        $userId = $this->getUserId();
        $type = $this->request->input('tag_type', LikeTag::TYPE_LIKE);
        $toUserId = $this->request->input('to_user_id', 0);
        LikeTag::addRecord($userId,$toUserId,$type);
        log_info(__CLASS__.'==='.'user_id:'.$userId.'==toUserId:'.$toUserId.'==type'.$type);
        return [];
    }
}